#ifndef COMPANYQRCODEDIALOG_H
#define COMPANYQRCODEDIALOG_H

#include <QDialog>
#include <QPainter>
#include <QMouseEvent>
#include <QStyleOption>

namespace Ui {
class CompanyQRCodeDialog;
}

class CompanyQRCodeDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CompanyQRCodeDialog(QWidget *parent = nullptr);
    CompanyQRCodeDialog(int num,QWidget *parent = nullptr);
    ~CompanyQRCodeDialog();


protected:
    void paintEvent(QPaintEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;

private:
    Ui::CompanyQRCodeDialog *ui;
    QPoint m_dragPosition;
    QRect m_closeButtonRect;

};

#endif // COMPANYQRCODEDIALOG_H
